<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单确认详细</title>
<#include "../common/header.ftl"/>
<script type="text/javascript" src="/js/plugins/jquery.form.js"></script>
<script type="text/javascript" src="/js/plugins/jquery.twbsPagination.min.js"></script>

<script type="text/javascript">

</script>
</head>
<body>
	<div class="container">
		<#--<#include "../common/top.ftl"/>-->
		<div class="row">
			<#--<div class="col-sm-3">
				<#assign currentMenu="userFileAuth" />
				<#include "../common/menu.ftl" />
			</div>-->
			<div class="col-sm-9">
				<div class="page-header">
					<h3>订单列表</h3>
				</div>
				<div class="panel panel-default">
                    <button type="button" onclick="window.history.back()" class="btn btn-success">返回</button>
					<table class="table">
						<tr><th colspan="4" class="text-center info">基本信息</th></tr>
						<tr>
							<th class="text-right">订单号:</th>
							<td class="text-left">${orderDerdetail.orderSn}</td>
							<th class="text-right">订单状态:</th>
							<td class="text-left">${orderDerdetail.orderStatusDisplay},${orderDerdetail.payStatusDisplay},${orderDerdetail.shippingStatusDisplay}</td>
						</tr>
						<tr>
							<th class="text-right">购货人:</th>
							<td class="text-left">${orderDerdetail.consignee}</td>
							<th class="text-right">下单时间:</th>
							<td class="text-left">${(orderDerdetail.orderTime?string('yyyy-MM-dd HH:mm:ss'))!""}</td>
						</tr>
                        <tr>
                            <th class="text-right">发货单号:</th>
                            <td class="text-left">${orderDerdetail.deliverSn!"未发货"}</td>
                            <th class="text-right">付款时间:</th>
                            <td class="text-left">${(orderDerdetail.payTime?string('yyyy-MM-dd HH:mm:ss'))!""}</td>
                        </tr>
                        <tr>
                            <th class="text-right">配送方式:</th>
                            <td class="text-left">默认快递</td>
                            <th class="text-right">发货时间:</th>
                            <td class="text-left">${(orderDerdetail.sendTime?string('yyyy-MM-dd HH:mm:ss'))!""}</td>
                        </tr>
					</table>
				</div>
                <div class="panel panel-default">
                    <table class="table">
                        <tr><th colspan="4" class="text-center info">收货人信息</th></tr>
                        <tr>
                            <th class="text-right">收货人:</th>
                            <td class="text-left">${orderDerdetail.consignee}</td>
                            <th class="text-right">手机:</th>
                            <td class="text-left"></td>
                        </tr>
                        <tr>
                            <th class="text-right">地址:</th>
                            <td class="text-left">${orderDerdetail.province}${orderDerdetail.city}${orderDerdetail.district}${orderDerdetail.address}</td>
                            <th class="text-right">邮编:</th>
                            <td class="text-left">${orderDerdetail.zipcode}</td>
                        </tr>
                    </table>
                </div>
                <div class="panel panel-default">
                    <table class="table">
                        <tr><th colspan="5" class="text-center info">商品信息</th></tr>
                        <tr>
                            <th>商品名称</th>
                            <th>商品价格</th>
                            <th>商品数量</th>
                            <th>商品属性</th>
                            <th>商品小计</th>
                        </tr>
                        <#list products as product>
                            <tr>
                                <td>${product.productName}</td>
                                <td>${product.productPrice?string('0.00')}</td>
                                <td>${product.productNumber?string("#.##")}</td>
                                <td>${product.skuAttr}</td>
                                <td id="amount">${product.amount?string('0.00')}</td>
                            </tr>
                        </#list>
                    </table>
                </div>

                <div class="panel panel-default">
                    <table class="table">
                        <tr><th colspan="6" class="text-center info">操作记录</th></tr>
                        <tr>
                            <th>操作者</th>
                            <th>操作时间</th>
                            <th>订单状态</th>
                            <th>付款状态</th>
                            <th>发货状态</th>
                            <th>备注</th>
                        </tr>
                        <#list orderActions as orderAction>
                            <tr>
                                <td>${orderAction.actionUser}</td>
                                <td>${(orderAction.actionTime?string('yyyy-MM-dd HH:mm:ss'))!""}</td>
                                <td>${orderAction.orderStatusDisplay}</td>
                                <td>${orderAction.payStatusDisplay}</td>
                                <td>${orderAction.shippingStatusDisplay}</td>
                                <td>${orderAction.actionNote}</td>
                            </tr>
                        </#list>
                    </table>
                </div>
			</div>
		</div>
    </div>
</body>
</html>